import { S } from '../s';
import { IPSAppResource } from './ipsapp-resource';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSAppResourceImpl
  extends PSModelObjectImpl
  implements IPSAppResource
{
  get content(): string {
    return this.M.content;
  }

  get resTag(): string {
    return this.M.resTag;
  }

  get resourceType():
    | 'IMAGE'
    | 'STRING'
    | 'USER'
    | 'USER2'
    | 'USER3'
    | 'USER4'
    | 'USER5'
    | 'USER6'
    | 'USER7'
    | 'USER8'
    | 'USER9' {
    return this.M.resourceType;
  }
  get cls(): string {
    return 'PSAppResourceImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._3d5) return true;
    return super.instanceof(cls);
  }
}
